package com.icoopoo.modules.student.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.icoopoo.modules.student.dao.StudentDao;
import com.icoopoo.modules.student.model.Student;
import com.icoopoo.modules.student.service.StudentService;

@Service
public class StudentServiceImpl implements StudentService{

	@Autowired
	private StudentDao dao;
	
	@Override
	public Map<String,Object> getStudentById(String id) {
		
		System.out.println("********testc getStudentById************");
		return dao.getStudentById(id);
	}
	@Override
	public void saveStudent(Student s) {
		System.out.println("********testc saveStudent************");
		dao.saveStudent(s);
	}
	@Override
	public void updateStudent(Student s) {
		System.out.println("********testc updateStudent************");
		dao.updateStudent(s);
	}
   
	@Override
	public void deleteStudentById(String id) {
		System.out.println("********testc deleteStudentById************");
		dao.deleteStudentById(id);
	}

}
